package com.zhubayi.springcloud.service;

import com.zhubayi.springcloud.entities.CommonResult;
import com.zhubayi.springcloud.entities.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author zhubayi
 */
@Service
@FeignClient(value = "CLOUD-PAYMENT-SERVICE")
public interface PaymentFeignService {
    @GetMapping("payment/list")
     CommonResult list();
    @GetMapping("payment/get/{id}")
     CommonResult get(@PathVariable("id") Long id);
    @GetMapping("payment/feignTimeout")
     String paymentFeignServiceTimeout();

}
